package com.eclink.iot.tcp.virtualdevice.util;

import io.vertx.core.buffer.Buffer;

import java.util.List;

public class BufferUtil {

    public static Buffer transListToBuffer(List<Byte> list) {
        Buffer buffer = Buffer.buffer();
        for(Byte b : list) {
            buffer.appendByte(b);
        }
        return buffer;

    }
}
